package com.anycl.design.structural.decorator;

/**
 * 具体被装饰的类
 * 具体构件（ConcreteComponent）
 */
public class VideoPlay extends MediaPlay {

    public String videoName;
    public String videoContent;


    public VideoPlay(String videoName, String videoContent) {
        this.videoName = videoName;
        this.videoContent = videoContent;
    }

    @Override
    public String getMediaName() {
        return videoName;
    }

    @Override
    public int getMediaSeconds() {
        return videoContent.length();
    }

    @Override
    public String getMediaContent() {
        return videoContent;
    }
}
